{extend name='extra@admin/content'}

{block name="button"}
<div class="nowrap pull-right" style="margin-top:10px">
      <a href='{:url("store/caiwu/export")}?date={$Think.get.date}' class="layui-btn layui-btn-small" style="text-decoration:none"><i class="fa fa-mail-forward"></i>
          导出
      </a>
</div>
{/block}

{block name="content"}

<!-- 表单搜索 开始 -->
<form class="animated form-search" action="__SELF__" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">下单时间</label>
        <div class="layui-input-inline">
            <input name="date" id='range-date' value="{$Think.get.date|default=''}"
                   placeholder="请选择时间" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <table class="layui-table" lay-skin="line" lay-size="sm">
        <thead>
            <tr>
                <th class='text-left nowrap'>付款方式</th>
                <th class='text-left nowrap'>金额</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class='text-left nowrap'>
                    支付宝
                </td>
                <td class='text-left nowrap'>
                    {$ali_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    微信
                </td>
                <td class='text-left nowrap'>
                    {$wx_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    会员卡
                </td>
                <td class='text-left nowrap'>
                    {$yue_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    现金
                </td>
                <td class='text-left nowrap'>
                    {$cash_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    银行卡
                </td>
                <td class='text-left nowrap'>
                    {$bank_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    美团
                </td>
                <td class='text-left nowrap'>
                    {$meituan_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    饿了吗
                </td>
                <td class='text-left nowrap'>
                    {$elema_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    优惠券
                </td>
                <td class='text-left nowrap'>
                    {$coupon_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    代金券
                </td>
                <td class='text-left nowrap'>
                    {$cash_coupon_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    退款
                </td>
                <td class='text-left nowrap'>
                    {$back_amount}
                </td>
            </tr>
            <tr>
                <td class='text-left nowrap'>
                    总计
                </td>
                <td class='text-left nowrap'>
                    {$final_amount}
                </td>
            </tr>
        </tbody>
    </table>
    <script>
        window.laydate.render({range: true, elem: '#range-date', format: 'yyyy/MM/dd'});
    </script>
</form>
{/block}